@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="indexFrom">

            <input type="hidden" id="id" value="">
            <input type="hidden" id="type" value="">

            <div class="row">
                <div class="col-sm-12">
                    <#select id="classtypeId" name="年龄段" >
                        @for(rec in categorys) {
                        <option value="${rec.id}">${rec.name}</option>
                        @}
                    </#select>
                    <#select id="pageclassId" name="页面分类" >
                        @for(rec in pages) {
                        <option value="${rec.id}">${rec.name}</option>
                        @}
                    </#select>
                    <#input id="viewTitle" name="显示标题" underline="true" />

                    <#cateModal id="zhuanji" name="专辑分类" readonly="readonly" underline="true" type="button"/>

                    <#appicon id="img" name="首页图标" underline="true"/>

                    <#input id="sort" name="排序" underline="true" />
                            <#input id="desc" name="注释" underline="true" />
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="ApphomeInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="ApphomeInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<div class="modal inmodal fade" id="cateModal" tabindex="-1" role="dialog" aria-hidden="true" style="display: none;">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span
                        class="sr-only">Close</span>
                </button>
                <p class="modal-title">专辑分类选择</p>
                <text style="color: red">说明：分类单选 专辑可以多选</text>
            </div>
            <small class="font-bold">
                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
                    分类
                </button>
                <div class="modal-body" id="banners">
                    @for(banner in bannerList) {
                    <input class="categroys" name="banner_name" value="${banner.id}" banner_name="${banner.name}" type="radio"/>${banner.name}&nbsp;&nbsp;&nbsp;&nbsp;
                    @}
                </div>
                <button data-toggle="dropdown" class="btn btn-white dropdown-toggle" type="button">
                    专辑
                </button>
        <div class="modal-body" id="cates">

            @for(category in cateList) {
            <input class="categroys" name="cate_name" value="${category.id}" cate-name="${category.name}" type="checkbox"/>${category.name}&nbsp;&nbsp;&nbsp;&nbsp;
            @}
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-white" data-dismiss="modal">取消</button>
            <button type="button" class="btn btn-primary" onclick="ApphomeInfoDlg.getCates()">确定</button>
        </div>
        </small>
    </div>
    <small class="font-bold">
    </small>
</div>
<small class="font-bold">
</small>
</div>
<script src="${ctxPath}/static/modular/app/apphome/apphome_info.js"></script>
@}
